package org.study.javafx.demo12;

import javafx.application.Application;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 作用描述
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2024年07月28日
 */
@SpringBootApplication
public class AppStarter implements CommandLineRunner {
    public static void main(String[] args) {
        // 改造main()方法
        SpringApplication app = new SpringApplication(AppStarter.class);
        app.run(args);
    }

    @Override
    public void run(String... args) throws Exception {
        // 重写接口中的run()方法
        Application.launch(App.class, args);
    }
}
